<?php
declare (strict_types = 1);

namespace app\adminapi\model\system\organize;

use adminmatrix\server\app\model\BaseModel;
use think\model\relation\HasOne;

/**
 * @mixin \think\Model
 */
class AdminPosition extends BaseModel
{


    #-------------------------------------------------------------------
    # 关联表
    #-------------------------------------------------------------------

    # 关联部门
    public function department() : HasOne
    {
        return $this->hasOne(AdminDepartment::class , 'id' , 'department_id');
    }
}
